package com.zxing.practice.service.paper;

import com.zxing.practice.config.vo.AjaxResult;
import com.zxing.practice.entity.paper.BankStudentLinkEntity;
import com.zxing.practice.mapper.paper.BankStudentLinkMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;


@Service
@RequiredArgsConstructor
public class StudentPaperService {

    private final BankStudentLinkMapper bankStudentLinkMapper;

    public AjaxResult generatePaper(BankStudentLinkEntity link) {
//        Integer bankId = link.getBankId();
//        QueryWrapper query = QueryWrapper.create().where(BankStudentLinkEntityTableDef.BANK_ID.eq(bankId))
//                .and(BankStudentLinkEntityTableDef.BANK_STUDENT_LINK_ENTITY.STUDENT_ID.eq(1));
//        BankStudentLinkEntity LinkEntity = bankStudentLinkMapper.selectObjectByQueryAs(query, BankStudentLinkEntity.class);
//        LinkEntity.get
//        if()
        return null;
    }
}
